package org.example.mallweb.mallservice.mq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 韩先楚
 */
@Component
public class TestReceive {

    @RabbitListener(queues = "testQueue")
    public void receive(String message) {

        System.out.println("Received message: " + message);
    }

}
